﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    [StructLayout(LayoutKind.Sequential)]
    public class ClientInfo
    {
        public IntPtr ConnId { get; set; }//连接ID
        public string IpAddress { get; set; }//ip
        public ushort Port { get; set; }//port
        public bool Legal { get; set; }//合法非法
        public string registerCode { get; set; }//电梯注册代码
        public string deviceId { get; set; }//设备出厂编码
        public int ver { get; set; }//设备版本

        public DateTime ConnTime { get; set; }//连接时间
        public List<byte> buffer = new List<byte>();//接收到的数据
    }
}
